﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExamWeek01.Domain
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("Role")]
    public class Role
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int RId { get; set; }
        /// <summary>
        /// 上级角色
        /// </summary>
        public string? LastRole { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string? RName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? Department { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsUse { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatePerson { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdatePerson { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
